var contentId="sample/lcj_c01.txt";
var content:String;
var readerSettings:Object=new Object();
var micSettings:Object;
var audioId="jumpingnotes_prototype_vt1";
var filteredAudioId:String;

var processData:Object=new Object();

var username:String;

// temp
// var readingWork:Object;

function clear()
{
	delete contentId;
	delete content;
	delete readerSettings;
	delete micSettings;
	delete audioId;
	delete filteredAudioId;
	delete processData;

	delete username;

	readerSettings=new Object();
	processData=new Object();
}


// [2008/5/28]
// userProfile
var userList:Array=new Array();
var audioList:Array=new Array();

function dataProvider():Object
{
	var args=new Array();
	args.push(userList);
	var item=Packages.system.Collab.wrapInfo(this, "updateList", args);
	return item;
}

function updateList(nameList:Array)
{
	userList=nameList;
}

function accessList()
{
	return userList;
}

function reportAudioId()
{
	var args:Array=new Array();
	args.push(username);
	args.push(audioId);
	Packages.system.Collab.updateInfo(this, "acceptAudioId", args);
}

function acceptAudioId(username:String, audioId:String)
{
	trace("acceptAudioId: "+username+" "+audioId);
	audioList[username]=audioId;
}

function AudioDataProvider()
{
	var args=new Array();
	args.push(audioList);
	var item=Packages.system.Collab.wrapInfo(this, "updateAudioList", args);
	return item;
}

function updateAudioList(audioArr)
{
	audioList=audioArr;
}